//
//  AddressCell.h
//  NewPro
//
//  Created by RYX on 2018/10/19.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AddressModel;

NS_ASSUME_NONNULL_BEGIN

@protocol AddressCellDelegate <NSObject>

- (void)onSetLocalWithIndexPath:(NSIndexPath *)indexPath;
- (void)onEditBtnWithIndexPath:(NSIndexPath *)indexPath and:(UIButton *)btn;
- (void)onDeleteBtnWithIndexPath:(NSIndexPath *)indexPath and:(UIButton *)btn;

@end

@interface AddressCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIButton *currentLocaBtn;

@property (nonatomic,strong) NSIndexPath *indexpath;

@property (nonatomic,weak) id<AddressCellDelegate> delegate;

+ (instancetype)tempWithTableView:(UITableView *)tableView;

+ (CGFloat)getHeight;

+ (instancetype)cell;

@property (nonatomic,strong) AddressModel *model;

@end

NS_ASSUME_NONNULL_END
